home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
- #include <conio.h>
- #include "dashanim.h"
-
- int main(int argc, char* argv[]){
- printf("\nPlayDSH Animation File Player for .DSH format animation files.\n");
- printf("By Eric M. Dashofy\n");
- printf("Copyright 1995 Eric M. Dashofy / Archon Software\n");
- printf("All Rights Reserved.");
- if (argc != 3){
- printf("\n\nIncorrect number of arguments.\n");
- printf("\n\nUsage: PLAYDSH [file].DSH [delay]\n");
- printf("\nWhere file is the filename of the animation file, and\n");
- printf("delay is the delay between frames in milliseconds.\n");
- printf("\n");
- return -1;
- }
- printf("\nPress any key to stop.\n");
- delay(2000);
- while (!kbhit()) playdsh(argv[1], atoi(argv[2]));
- return 0;
- }